﻿using PluginAPI.Core;
using PluginAPI.Core.Attributes;
using PluginAPI.Enums;
using PluginAPI.Events;
using ReconnectRole.Data;



namespace ReconnectRole.Main
{
    public class CodeLoad
    {
        public static CodeLoad Singleton { get; set; }

        [PluginConfig] public Config Config;

        public ReconnectList Reconnect { get; set; }


        //[PluginEntryPoint("03 重连继承角色", "v0.1.0", "重连继承角色", "River")]
        //[PluginPriority(LoadPriority.High)]
        //public void Load()
        //{
        //    if (!this.Config.IsEnable) return;

        //    Singleton = this;
        //    this.Reconnect = new ReconnectList();

        //    Log.Info($"NWPluginAPI| 重连继承角色 | 加载");
        //    EventManager.RegisterEvents<ReconnectEvent>(true);
        //}


        //[PluginUnload]
        //public void UnLoad()
        //{
        //    Singleton = null;

        //    EventManager.UnregisterEvents(this);
        //}
    }
}
